﻿using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Hosting;

namespace CommonUtils.Web.Test
{
    public class Program
    {
        public static void Main(string[] args)
        => CreateHostBuilder(args).Build().Run();

        public static IHostBuilder CreateHostBuilder(string[] args)
        => Host.CreateDefaultBuilder(args)
            .ConfigureWebHostDefaults(webBuilder => webBuilder
            .UseStartup<Startup>()
            //.UseUrls("http://192.168.2.183:5100/")
            .UseKestrel(options =>
            {
                options.Limits.MaxRequestBodySize = long.MaxValue;
                options.Limits.MaxRequestBufferSize = long.MaxValue;
                options.Limits.MaxRequestLineSize = int.MaxValue;
            }));
    }
}
